<include file="public:header"/>
<div class="c_main fr">
<form action="{:U('setconf')}" method="post">
	<div class="c_main_title">数据库及相关配置</div>
	<div class="c_main_body setconf">
    	<present name="error_msg">
        <div class="error_msg">{$error_msg}</div>
        </present>
        <fieldset>
        	<legend>数据库服务器信息</legend>
            <ul>
            	<li><span class="field">数据库地址：</span><input type="text" name="db_host" class="text_input" size="30" value="{$db_host}" /><span class="field port">端口：</span><input type="text" name="db_port" class="text_input" size="8" value="{$db_port}" /></li>
                <li><span class="field">数据库用户名：</span><input type="text" name="db_user" class="text_input" size="30" value="{$db_user}" /><span class="field_tip">连接数据库的用户名</span></li>
                <li><span class="field">数据库密码：</span><input type="password" name="db_pass" id="db_pass" class="text_input" size="30" value="{$db_pass}" /><span class="field_tip">连接数据库的密码</span></li>
                <li><span class="field">数据库名：</span><input type="text" name="db_name" class="text_input" size="30" value="{$db_name}" /><span class="field_tip">{$database_name_tip}</span></li>
                <li><span class="field">数据表前缀：</span><input type="text" name="db_prefix" class="text_input" size="30" value="{$db_prefix}" /><span class="field_tip">一个数据库安装多个系统时，请修改前缀</span></li>
            </ul>
        </fieldset>
        <fieldset class="admin_info">
        	<legend>网站管理员信息</legend>
            <ul>
                <li><span class="field">管理员帐号：</span><input type="text" name="admin_user" class="text_input" size="30" value="{$admin_user}" /><font color="red">建议写名字拼音或者名字和数字组合</font></li>
                <li><span class="field">管理员密码：</span><input type="password" name="admin_pass" class="text_input" size="30" value="{$admin_pass}" /></li>
                <li><span class="field">重复密码：</span><input type="password" name="admin_pass_confirm" class="text_input" size="30" value="{$admin_pass_confirm}" /></li>
                <!--<li><span class="field">管理员邮箱：</span><input type="text" name="admin_email" class="text_input" size="30" value="{$admin_email}" /></li>-->
            </ul>
        </fieldset>
    </div>
    <div class="act">
        <div class="btn"><input type="submit" value="下一步" class="btn_next" /></div>
    </div>
</form>
</div>
<include file="public:footer"/>